<?php

namespace App\Http\Controllers;

use App\Http\Model\Hint;
use App\Http\Model\OutJson;
use App\Http\Services\LuckyServices;
use Illuminate\Http\Request;


class LuckyController extends Controller
{

    protected $luckyServices;

    public function __construct()
    {
        parent::__construct();
        $this->luckyServices = new LuckyServices();
    }


    public function index(Request $request)
    {
        OutJson::toJson(Hint::SUCCESS,'成功',$this->luckyServices->getRank($request->input()));
    }

}